home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group95b.txt
/
000079_icon-group-sender _Mon Jul 10 16:11:53 1995.msg
< prev
next >
Wrap
Internet Message Format
|
1995-09-18
|
2KB
Received: by cheltenham.cs.arizona.edu; Mon, 10 Jul 1995 15:09:38 MST
Date: Mon, 10 Jul 1995 16:11:53 -0500 (CDT)
From: "Chris D. Tenaglia" <cdt@post.its.mcw.edu>
To: icon-group@cs.arizona.edu
Subject: DOS delay routine
Message-Id: <Pine.ULT.3.90.950710160823.23822A-100000@post.its.mcw.edu>
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Errors-To: icon-group-errors@cs.arizona.edu
Running Icon V9 for MSDOS V6.2 on a 486/100 Compaq. I wrote
a little routine to monitor things on a Novell LAN. I needed
something to wait about 5 min. between checkups do I wrote
a little delay route that waits in a little key sensing loop.
Under unix there is a delay() builtin procedure.
In this routine it seems to get stuck waiting for the key.
Has the key handler technique changed in this latest version?
I haven't been able to coax it to working. Are there plans
to incorporate such a builtin in DOS/Windows Icon in the
future? Any suggestions as to a better or correct way?
There are WAIT.COM programs but there's not much memory left
for system("wait 00:00:05") type calls. On my PC, delay(2)
waits about 5 minutes (or it used to), but now it just hangs.
When ESC is pressed it exits through the halt procedure.
Thanx in advance,
Chris.
#
# provide a time delay to limited amount of collected data
#
procedure delay(n)
target := n * 250000 # approx 5 min intervals
every i:= 1 to target do
{
if kbhit() then
{
kee := getch()
if kee == "\e" then halt("ESCAPED!")
}
22.0000/7.0000000
}
end
Chris Tenaglia (system manager) | cdt@post.its.mcw.edu
Medical College of Wisconsin |
8701 W. Watertown Plank Rd. | Ce que vous voyez est
Milwaukee, WI 53226 (414)456-8765 | ce que vous obtenez !